/**
 * Created by Administrator on 2017/5/22.
 */
var mongoose = require('./model');

// 创建模型
var chuangzuoSchema = new mongoose.Schema({

});
var chuangzuoInfo = mongoose.model('chuangzuo', chuangzuoSchema);
/*查找文章*/
exports.chuangzuowenzhang = function (condition,callback) {
    chuangzuoInfo.find(condition,function (err, doc) {
        if (err)
            throw err;
        console.log(doc);
        callback(doc);
    })
};